//
//  MessageCenter.h
//  QBIM
//
//  Created by liunian on 14-3-17.
//  Copyright (c) 2014年 liunian. All rights reserved.
//

#import <Foundation/Foundation.h>
@class AuthPayload;
@class HeaderBody;
@class MsgParam;
@interface MessageCenter : NSObject

+ (MessageCenter *)shared;
//授权请求:(client)
- (void)auth:(HeaderBody *)body;
- (void)logout;

- (void)sendMessage:(MsgParam *)msgParam;

//订阅
- (void)subscribe:(int)ID;
- (void)unsubscribe:(int)ID;

- (void)setAuthPayLoad:(AuthPayload *)authPayload;
- (AuthPayload *)currentAuthPayload;
@end
